package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.pojos.WmChannel;
import com.heima.model.wemedia.pojos.WmNewsMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: zhk
 * @since: 2025/7/3
 */
@Mapper
public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {
    /**
     * 插入素材中间表
     * @param materialIds
     * @param newsId
     * @param type
     */
    void insertAll(@Param("materialIds") List<Long> materialIds, @Param("newsId") Long newsId, @Param("type") Short type);
}
